package com.springboot.cloud.demos.producer.service;

import com.springboot.cloud.demos.entity.param.DictionaryQueryParam;
import com.springboot.cloud.demos.entity.po.Dictionary;

import java.util.List;

public interface IDictionaryService {
    /**
     * 获取
     *
     * @param id
     * @return
     */
    Dictionary get(String id);

    /**
     * 新增
     *
     * @param dictionary
     * @return
     */
    boolean add(Dictionary dictionary);

    /**
     * 查询
     *
     * @return
     */
    List<Dictionary> query(DictionaryQueryParam dictionaryQueryParam);

    /**
     * 更新信息
     *
     * @param dictionary
     */
    boolean update(Dictionary dictionary);

    /**
     * 根据id删除
     *
     * @param id
     */
    boolean delete(String id);

    Object list();
}
